package com.zjuh.goodboy.parsers;

import java.io.Serializable;

import com.zjuh.goodboy.util.URLUtil;

public class ItemExpr implements Serializable {

	private static final long serialVersionUID = 2596801460254752106L;
	
	private int id;
	
	private String inputUrlExpr;
	
	private String siteName;
	
	private String hostname;
	
	private String itemExpr;
	
	private String urlExpr;
	
	private String imgUrlExpr;
	
	public String getItemExpr() {
		return itemExpr;
	}

	public void setItemExpr(String itemExpr) {
		this.itemExpr = itemExpr;
	}

	public String getUrlExpr() {
		return urlExpr;
	}

	public void setUrlExpr(String urlExpr) {
		this.urlExpr = urlExpr;
	}

	public String getImgUrlExpr() {
		return imgUrlExpr;
	}

	public void setImgUrlExpr(String imgUrlExpr) {
		this.imgUrlExpr = imgUrlExpr;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}

	public String getHostname() {
		return hostname;
	}

	public String getInputUrlExpr() {
		return inputUrlExpr;
	}

	public void setInputUrlExpr(String inputUrlExpr) {
		this.inputUrlExpr = inputUrlExpr;
	}

	public void setHostname(String hostname) {
		this.hostname = URLUtil.getRootHostname(hostname);
	}


}
